package com.top.up.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("recharge")
public class RechargeEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("productId")
    @ApiModelProperty(value = "productId", name = "产品编号")
    private String productId;

    @TableField("type")
    @ApiModelProperty(value = "type", name = "产品类型：01-话费, 02-流量")
    private String type;

    @TableField("title")
    @ApiModelProperty(value = "title", name = "产品描述")
    private String title;

    @TableField("price")
    @ApiModelProperty(value = "price", name = "售价")
    private Double price;

    @TableField("inventory")
    @ApiModelProperty(value = "inventory", name = "库存数据量")
    private Integer inventory;
}
